/**
 * <p>Package : org.tea.springdata.mongdb.dao</p>
 * <p>E-Mail : ztlyde@gmail.com</p>
 */
package org.tea.springdata.mongdb.dao;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;
import org.tea.springdata.mongdb.domain.Person;

/**
 * @author: John zhang
 * @version: 0.1
 */
@Repository
public interface PersonRepository extends MongoRepository<Person, String> {

	@Query("{'age' : ?0}")
	List<Person> findByThePersonsAge(int age);

}
